import { defAxios as request } from '@/utils/http'
/**
 * 任务列表
 * @returns
 */
export const getNewInspectionList = data => request({
  url: `/inspection/getNewInspectionList`,
  method: 'GET'
})
/**
 * 问题类型饼状图分布
 * @returns
 */
export const problemDistribution = data => request({
  url: `/inspectionFile/listByDeptUserType`,
  method: 'GET'
})
/**
 * 根据任务id获取任务视频播放
 * @returns
 */
export const taskVideo = data => request({
  url: `/inspection/videoById/${data}`,
  method: 'GET'
})
/**
 * 根据机场id获取当前登陆人部门的巡检任务列表
 * @returns
 */
export const get = data => request({
  url: `/inspection/patrolInspectionTask`,
  method: 'GET'
})

/**
 * 近期任务
 * @returns
 */
export const getInspectionList = data => request({
  url: `/inspection/getInspectionList`,
  method: 'GET'
})
